package day11_coll.demo03_Object;

import java.util.Scanner;
//使用equals时,对象值不能为null
public class demo02 {
    public static void main(String[] args) {
        String a=null;
        Scanner b = new Scanner(System.in);
        String c=b.next();
        if (a!=null){
            System.out.println(a.equals(c));
        }else{
            System.out.println("为null");
        }
//        int a=2;
//        Scanner b = new Scanner(System.in);
//        int c=b.nextInt();
//        System.out.println(a==c);
    }
}
